<div class="nav-header">
    <div class="nav-header-center">
        <div class="nav-header-center-logo">
            <a href="/">
                <img src="__TMPL__/portal/public/assets/images/logo.png"/>
            </a>
        </div>
        <php>$nav = isset($nav)?$nav:'';</php>
        <div class="nav-header-center-bar">
            <div class="bar-list">
                <if condition="$nav eq ''">
                    <a href="{:url('portal/index/index')}" class="active">广场</a>
                    <else />
                    <a href="{:url('portal/index/index')}" >广场</a>
                </if>
            </div>
            <div class="bar-list">
                <if condition="$nav eq 'trial'">
                    <a href="{:url('portal/index/trial')}" class="active">体验课</a>
                    <else />
                    <a href="{:url('portal/index/trial')}">体验课</a>
                </if>
            </div>
            <div class="bar-list">
                <if condition="$nav eq 'explore'">
                    <a href="{:url('portal/index/explore')}" class="active">正式课</a>
                    <else />
                    <a href="{:url('portal/index/explore')}">正式课</a>
                </if>

            </div>
            <div class="bar-list">
                <if condition="$nav eq 'activities'">
                    <a href="{:url('portal/index/activities')}" class="active">活动</a>
                    <else />
                    <a href="{:url('portal/index/activities')}">活动</a>
                </if>
            </div>
        </div>
        <div class="nav-header-center-btn">
            <!--搜索-->
            <div class="search-wrap_input">
                <input  aria-placeholder="搜索课程或用户" placeholder="搜索课程或用户" autocomplete="off" class="search-input-ele">
                <div class="search-btn search-btn-else">
                    <span class="search-img">
                    <br></span>
                </div>
            </div>
            <!--下载-->
            <div class="nav-icon">
                <div class="downlod-app-box">
                    <a title="下载APP">
                        <span class="icons" >
                        </span>
                        <p class="icons-txt">下载APP</p>
                        <div class="code-box">
                            <span>
                                <img src="https://resource.dapengjiaoyu.cn/images/app/qr/qr_01.png" alt="扫码下载APP" title="扫码下载APP">
                            </span>
                            <p>扫码下载APP</p>
                        </div>
                    </a>
                </div>
                <div class="message-btn">
                    <a title="消息通知">
                        <span class="icons"></span>
                        <p class="icons-txt">消息</p>
                    </a>
                </div>
            </div>
            <!-- 注册/登陆-->
            <div class="login-register-wrap_btn" data-toggle="modal" data-target=".bs-example-modal-sm">
                <img src="https://www.dapengjiaoyu.cn/dapeng/img/b7a3ca7.1617702975609.png">
                <span>注册</span>/
                <span>登录</span>
            </div>
        </div>
    </div>
</div>